import { Component } from '@angular/core';
import {  NavController, NavParams,ViewController } from 'ionic-angular';

/**
 * Generated class for the OpenpdfPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */


@Component({
  selector: 'page-openpdf',
  templateUrl: 'openpdf.html',
})
export class OpenpdfPage {
  public chooseType='handle';
  public pdfSrc='assets/myFile.pdf';
  public showArr=[
  {
     text:'1.cnpm install ng2-pdf-viewer@3.0.8 --save',
     tips:'安装依赖'
    }
  ]
  
  constructor(public navCtrl: NavController,  public viewCtrl:ViewController, public navParams: NavParams) {
  }
  dismiss(){
    this.viewCtrl.dismiss();
  }
  goOutPDF(){
 

  }
  segmentChanged(e){
    console.log(e)
    console.log(this.chooseType)
  }
  ionViewDidLoad() {
    console.log('ionViewDidLoad OpenpdfPage');
  }

}
